//package org.liuyunfeng.consumer;
//
//import com.rabbitmq.client.Channel;
//import org.liuyunfeng.domain.Order;
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.amqp.support.AmqpHeaders;
//import org.springframework.messaging.handler.annotation.Header;
//import org.springframework.messaging.handler.annotation.SendTo;
//import org.springframework.stereotype.Component;
//
//import java.io.IOException;
//
///**
// * @author: TanJingyu
// * @create: 2022-03-18 17:23
// **/
//@Component
//public class RabbitConsumer {
//
//    @RabbitListener(id = "manual.acks.1", queues = "test", ackMode = "MANUAL")
//    @SendTo("demo")
//    public String handleMes(Order order, Channel channel, @Header(AmqpHeaders.DELIVERY_TAG) long tag) throws IOException {
//        channel.basicAck(tag, true);
//        return "shoudaole";
//    }
//}
//
